|
|
|
|
<DiskFile variable>.Size (Function) In french: <Variable FichierDisque>.Taille Returns the size of a file (in bytes).
Syntax
Getting the size of a file according to its path Hide the details
<Result> = <File path>.Size()
<Result>: Integer - File size in bytes,
- -1 if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant.
When handling files exceeding 2 GB, <Result> must correspond to an 8-byte integer.
<File path>: DiskFile variable Name of the DiskFile variable initialized with .Open, Create or OpenTempFile. Remarks Handling errors <DiskFile variable>.Size throws an error in the following cases: - the specified file does not exist,
- the name of the specified file is invalid.
Remark: <DiskFile variable>.Size does not operate on the hidden files. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|